package com.avic.rong.api;

import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

/**
 * Creater: Created by wangyz on 2018/12/12.
 * Email: 936804097@qq.com
 */
public class AlipayPayParamApi extends BaseApi<AlipayPayParamApi> {

    private Integer userId;
    private Integer orderId;

    public AlipayPayParamApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }

    public void setArgs(Integer userId, Integer orderId){
        this.userId = userId;
        this.orderId = orderId;
    }


    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService postService = retrofit.create(HttpPostService.class);
        return postService.getAlipayPayParam(userId,orderId);
    }



}
